package cn.mhome.merchant.dao.common.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

@Entity
@Table(name="class_type")
public class ClassType implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private long classTypeId;
	private long superClassId;
	private String classTypeName;
	private String classTypeIcon;
	private int state;//状态
	private int businessNum;//商家个数
	private Date createTime;
	private long createUser;
	private long version;
	
	@Id
	@Column(name="class_type_id")
	public long getClassTypeId() {
		return classTypeId;
	}
	public void setClassTypeId(long classTypeId) {
		this.classTypeId = classTypeId;
	}
	@Column(name="create_time")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name="create_user")
	public long getCreateUser() {
		return createUser;
	}
	public void setCreateUser(long createUser) {
		this.createUser = createUser;
	}
	@Column(name="super_class_id")
	public long getSuperClassId() {
		return superClassId;
	}
	public void setSuperClassId(long superClassId) {
		this.superClassId = superClassId;
	}
	@Column(name="class_type_name")
	public String getClassTypeName() {
		return classTypeName;
	}
	public void setClassTypeName(String classTypeName) {
		this.classTypeName = classTypeName;
	}
	@Column(name="class_type_icon")
	public String getClassTypeIcon() {
		return classTypeIcon;
	}
	public void setClassTypeIcon(String classTypeIcon) {
		this.classTypeIcon = classTypeIcon;
	}
	@Column(name="state")
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	@Column(name="business_num")
	public int getBusinessNum() {
		return businessNum;
	}
	public void setBusinessNum(int businessNum) {
		this.businessNum = businessNum;
	}
	@Version
	@Column(name="version")
	public long getVersion() {
		return version;
	}
	public void setVersion(long version) {
		this.version = version;
	}
}
